//
//  WelcomeViewController.swift
//  swift_wobo
//
//  Created by yuxin on 2018/11/19.
//  Copyright © 2018 wuxiantianli. All rights reserved.
//

import UIKit

class WelcomeViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        view.addSubview(bgImageView)
        view.addSubview(iconView)
        view.addSubview(messageLabel)
        
        print("123123","我")
    }
    


    //MARK: - lazy
    private lazy var bgImageView = UIImageView(image: UIImage(named: "ad_background"))

    private lazy var iconView : UIImageView = {
        let iv = UIImageView(image: UIImage(named: "avatar_default_big"))
        iv.layer.cornerRadius = 50
        iv.clipsToBounds = true
        return iv
    }()
    
    private lazy var messageLabel: UILabel = {
        let label = UILabel()
        label.text = "欢迎回来"
        label.sizeToFit()
        label.alpha = 0.0
        return label
    }()
    
}
